package com.csdj.music.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.csdj.music.vo.TRole;
import com.csdj.music.service.TRoleService;
import com.csdj.music.mapper.TRoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author ZouLi
* @description 针对表【t_role】的数据库操作Service实现
* @createDate 2023-03-13 16:11:22
*/
@Service
public class TRoleServiceImpl extends ServiceImpl<TRoleMapper, TRole>
    implements TRoleService{

    /**
     RoleMapper
     **/
    @Autowired(required = false)
    private TRoleMapper roleMapper;

    @Override
    public List<TRole> getRolesByAdminId(Integer id) {
        return roleMapper.getRolesByAdminId(id);
    }
}




